package com.zhijian.warehouse.manage.service;

import com.zhijian.warehouse.manage.tcp.TcpHandler;
import io.netty.channel.ChannelHandlerContext;

public interface TcpService {

    /**
     * 发送tcp消息
     *
     * @param str
     * @param ip
     */
    void sendTcpMsg(String str, String ip);

    void initTcpProperty(TcpHandler shunZhouTcpHandler, ChannelHandlerContext ctx);


    void changeConditionStatus(ChannelHandlerContext ctx, String tcpMsg) throws Exception;

    void tcpUpMsgHandle(ChannelHandlerContext ctx, String tcpMsg) throws Exception;

    /**
     * 让某个设备上线
     *
     * @param thingId
     */
    void deviceOnline(String thingId);
}
